package com.ityj.yygh.order;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.annotation.ComponentScan;

@SpringBootApplication
@ComponentScan(basePackages = "com.ityj")   // 加上，不然swagger扫描不到
@EnableDiscoveryClient
@EnableFeignClients(basePackages = "com.ityj")
public class OrderServiceStarter {
    public static void main(String[] args) {
        SpringApplication.run(OrderServiceStarter.class);
    }
}
